import { defineStore } from "pinia";

export const useStore = defineStore("store", {
  state: () => ({
    tabActiveValue: "1",
    recordRouteValue: [],
    axiosFetchValue: [],
  }),
  actions: {
    setTabActive(tabActive) {
      this.tabActiveValue = tabActive;
    },
    setRecordRoute(route) {
      this.recordRouteValue = route;
    },
    setAxiosFetch(axiosFetch) {
      this.axiosFetchValue = axiosFetch;
    },
  },
  getters: {
    tabActive: (state) => state.tabActiveValue,
    recordRoute: (state) => state.recordRouteValue,
    axiosFetch: (state) => state.axiosFetchValue,
  },
});
